extends Area2D

var attack_val:int
var speed

func _physics_process(delta):
	self.position+=Vector2.UP.rotated(self.rotation)*speed*delta


func _on_PlayerBullet_body_entered(body):
	if body.has_method("take_damage"):
		body.take_damage(attack_val,Vector2.UP.rotated(self.rotation))
	queue_free()
	pass # Replace with function body.



func _on_Bullet_area_entered(_area):
	queue_free()
	pass # Replace with function body.
